﻿using System;
using System.Collections.Generic;
using AutoR.Services;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Navigation;
using Prism.Services;

namespace AutoR.ViewModels.Home
{
	// Token: 0x020000AC RID: 172
	public class CampaignViewModel : BindableBase, INavigationAware, INavigatedAware, INavigatingAware
	{
		// Token: 0x170000D7 RID: 215
		// (get) Token: 0x06000341 RID: 833 RVA: 0x0004934A File Offset: 0x0004754A
		private INavigationService NavigationService { get; }

		// Token: 0x170000D8 RID: 216
		// (get) Token: 0x06000342 RID: 834 RVA: 0x00049352 File Offset: 0x00047552
		private IPageDialogService PageDialogService { get; }

		// Token: 0x170000D9 RID: 217
		// (get) Token: 0x06000343 RID: 835 RVA: 0x000408F6 File Offset: 0x0003EAF6
		public GameData Game
		{
			get
			{
				return Runtime.Game;
			}
		}

		// Token: 0x170000DA RID: 218
		// (get) Token: 0x06000344 RID: 836 RVA: 0x0004935A File Offset: 0x0004755A
		public DelegateCommand<IList<string>> TacticsCommand { get; }

		// Token: 0x06000345 RID: 837 RVA: 0x00049362 File Offset: 0x00047562
		public CampaignViewModel(INavigationService navigationService, IPageDialogService pageDialogService)
		{
			this.NavigationService = navigationService;
			this.PageDialogService = pageDialogService;
			this.TacticsCommand = new DelegateCommand<IList<string>>(async delegate(IList<string> ship)
			{
				NavigationParameters parameters = new NavigationParameters
				{
					{
						"list",
						ship
					}
				};
				await this.NavigationService.NavigateAsync("TacticsSelect", parameters);
			});
		}

		// Token: 0x06000346 RID: 838 RVA: 0x0004067F File Offset: 0x0003E87F
		public void OnNavigatedFrom(INavigationParameters parameters)
		{
		}

		// Token: 0x06000347 RID: 839 RVA: 0x0004067F File Offset: 0x0003E87F
		public void OnNavigatedTo(INavigationParameters parameters)
		{
		}

		// Token: 0x06000348 RID: 840 RVA: 0x0004067F File Offset: 0x0003E87F
		public void OnNavigatingTo(INavigationParameters parameters)
		{
		}
	}
}
